/**
 * Copyright 2010 Balaji Thennarangam.
 */
package com.kathez.studentportal.entity;

import java.io.Serializable;

/**
 * To represent the the primary key of the entity.
 * All the primary key objects should implement this 
 * interface.
 * 
 * Only the primary key objects should be present 
 * in this object.
 * 
 * @author Balaji T
 * @version 1.0
 * @since 1.0
 *
 */
public interface PrimaryKey extends Serializable {
	
	/**
	 * Returns the key objects of the entity
	 * @return key objects
	 */
	Object[] getKeys();
	
	/**
	 * Returns the key fields with their string values
	 * @return Sting equivalent of the keys
	 */
	String getKeysAsString();
}
